<?php

$config = array(
    'menu' => array(
        'nav-top' => array(
            array(
                'title' => __('Home'),
                'url' => array(
                    'controller' => 'pages',
                    'action' => 'home',
                ),
            ),
            array(
                'title' => __('Posts'),
                'url' => array(
                    'controller' => 'posts',
                    'action' => 'index',
                ),
                'children' => array(
                    array(
                        'title' => __('New Posts'),
                        'url' => array(
                            'controller' => 'posts',
                            'action' => 'add',
                        ),
                        'permissions' => 'members',
                    ),
                    array(
                        'title' => __('Most Views'),
                        'url' => array(
                            'controller' => 'posts',
                            'action' => 'most_views',
                        ),
                    ),
                    array(
                        'title' => __('Resents'),
                        'url' => array(
                            'controller' => 'posts',
                            'action' => 'resents',
                        ),
                    )
                ),
            ),
            array(
                'title' => __('Login'),
                'url' => array(
                    'controller' => 'users',
                    'action' => 'login',
                ),
                'permissions' => '',
            ),
            array(
                'title' => __('Logout'),
                'url' => array(
                    'controller' => 'users',
                    'action' => 'logout',
                ),
                'permissions' => 'members',
            ),
            array(
                'title' => __('Profile'),
                'url' => array(
                    'controller' => 'profile',
                    'action' => 'view',
                ),
                'permissions' => 'members',
            ),
            array(
                'title' => __('About'),
                'url' => array(
                    'controller' => 'pages',
                    'action' => 'about',
                ),
            )
        )
    )
);
